from django.db import models

# Create your models here.
class Article(models.Model):
	title = models.CharField(max_length=32, default='Title')
	content = models.CharField(max_length=320000,null=True)

	def __str__(self):
		return self.title

# 生成数据表
# 进入manage.py同级目录 执行 python manage.py makemigrations app名(可选)
# 再执行 python manage.py migrate

# 配置admin
# 在manage.py 同级目录下 执行 python manage.py createsuperuser
